package Dispatcher;


/**
 * Receives the floor number and direction from the dispatcher and prints it out
 * @author Varun Maryada, Sanat Dixit, Steve Tannahill
 *
 */
public class SendFloorRequestThread extends Thread {
	private int floor;
	private int dir;
	private GroupDispatcher gd;
	
	public SendFloorRequestThread(int floorNumber, int direction, GroupDispatcher gd) {
		this.gd = gd;
		this.floor = floorNumber;
		this.dir = direction;
	}

	@Override
	public void run() {
		if (gd.elevators.size() > 0){
			gd.elevators.get(0).println("Floor: "+ floor + ", Direction: " + dir);
		}
	}
}